import service from '@/utils/request'

// 登录
export function userLogin(data) {
  return service.request({
    method: 'post',
    data,
    url: '/user/login'
  })
}

// 获取用户权限
export function profile(params) {
  return service.request({
    method: 'get',
    params,
    url: '/user/profile'
  })
}
